 <include file="application/home/view/public/header.html"/>
      <!-- /.aside -->
      <section id="content">
        <section class="vbox">
          <section class="scrollable padder">
             <header class="header bg-light bg-gradient b-b">
            <p>首页</p>
          </header>
          <form class="form-horizontal" data-validate="parsley">
                <section class="panel panel-default">
                <header class="panel-heading"> <strong>个人信息修改</strong> </header>
                    <div class="panel-body">
                    <a href="#tab_2_1" data-toggle="tab" class="btn btn-s-md btn-primary" >修改登陆密码</a>
                    <a href="#tab_2_2" data-toggle="tab" class="btn btn-s-md btn-primary" >修改二级密码</a>
                    <div class="panel-body">
                      <div class="tab-content">
                        <div class="tab-pane active" id="tab_2_1">
                            <div class="form-group modify_padleft">
                              <label for="inputEmail12" class="col-md-2 control-label">输入原登陆密码：</label>
                              <div class="col-md-4">
                                <div class="input-icon">
                                  <input type="password"  name="pwd" class="form-control" id="pwd" placeholder="">
                                </div>
                              </div>
                            </div>
                            <div class="form-group modify_padleft">
                              <label for="inputEmail12" class="col-md-2 control-label">输入新登陆密码：</label>
                              <div class="col-md-4">
                                <div class="input-icon">
                                  <input type="password"  name="newpwd_one" class="form-control" id="newpwd_one" placeholder="">
                                </div>
                              </div>
                            </div>
                            <div class="form-group modify_padleft">
                              <label for="inputEmail12" class="col-md-2 control-label">确认新登陆密码：</label>
                              <div class="col-md-4">
                                <div class="input-icon">
                                  <input type="password" name="newpwd_two" class="form-control" id="newpwd_two" placeholder="">
                                </div>
                              </div>
                            </div>
                            <footer class="panel-footer text-right bg-light lter">
                              <button type="button" class="btn btn-success btn-s-xs" onclick="sub()" >提 交</button>
                            </footer>
                        </div>
                        <div class="tab-pane" id="tab_2_2">
                            <div class="form-group modify_padleft">
                              <label for="inputEmail12" class="col-md-2 control-label">输入原二级密码：</label>
                              <div class="col-md-4">
                                <div class="input-icon">
                                 <input type="password" name="pwdt" class="form-control" id="pwdt" placeholder="">
                                </div>
                              </div>
                            </div>
                            <div class="form-group modify_padleft">
                              <label for="inputEmail12" class="col-md-2 control-label">输入新二级密码：</label>
                              <div class="col-md-4">
                                <div class="input-icon">
                                 <input type="password" name="newpwd_onet" class="form-control" id="newpwd_onet" placeholder="">
                                </div>
                              </div>
                            </div>
                            <div class="form-group modify_padleft">
                              <label for="inputEmail12" class="col-md-2 control-label">确认新二级密码：</label>
                              <div class="col-md-4">
                                <div class="input-icon">
                                  <input type="password"  name="newpwd_twot" class="form-control" id="newpwd_twot" placeholder="">
                                </div>
                              </div>
                            </div>
                            <footer class="panel-footer text-right bg-light lter">
                              <button type="button" class="btn btn-success btn-s-xs"  onclick="sut()"  >提 交</button>
                            </footer>
                        </div>
                      </div>
                    </div>  
                  </section>
          </form>
          </section>
        </section>
        <a href="#" class="hide nav-off-screen-block" data-toggle="class:nav-off-screen" data-target="#nav"></a> </section>
      <aside class="bg-light lter b-l aside-md hide" id="notes">
        <div class="wrapper">Notification</div>
      </aside>
    </section>
  </section>
</section>
<script src="__PUBLIC__/home/js/app.v2.js"></script> <!-- Bootstrap --> <!-- App --> <script src="__PUBLIC__/home/js/charts/easypiechart/jquery.easy-pie-chart.js" cache="false"></script> <script src="__PUBLIC__/home/js/charts/sparkline/jquery.sparkline.min.js" cache="false"></script> <script src="__PUBLIC__/home/js/charts/flot/jquery.flot.min.js" cache="false"></script> <script src="__PUBLIC__/home/js/charts/flot/jquery.flot.tooltip.min.js" cache="false"></script> <script src="__PUBLIC__/home/js/charts/flot/jquery.flot.resize.js" cache="false"></script> <script src="js/charts/flot/jquery.flot.grow.js" cache="false"></script> <script src="__PUBLIC__/home/js/charts/flot/demo.js" cache="false"></script> <script src="__PUBLIC__/home/js/calendar/bootstrap_calendar.js" cache="false"></script> <script src="__PUBLIC__/home/js/calendar/demo.js" cache="false"></script> <script src="__PUBLIC__/home/js/sortable/jquery.sortable.js" cache="false"></script>
<script src="__PUBLIC__/js/layer/layer.js" type="text/javascript"></script>
</body>
</html>
<script>
  function sub(){
    var pwd = $("#pwd").val();
    var newpwd_one = $("#newpwd_one").val();
    var newpwd_two = $("#newpwd_two").val();
  
    var url = "{:U('User/updatePwd')}";
    $.post(url,{'pwd':pwd,'newpwd_one':newpwd_one,'newpwd_two':newpwd_two},function(data){
      if(data.status !=1){
        layer.msg(data.info);   
      }else{
        layer.msg(data.info);
         setTimeout(function () {
            location.href="{:U('User/revise_password')}"
          }, 2000); 
      }
    }); 
  }

  function sut(){
    var pwdt = $("#pwdt").val();
    var newpwd_onet = $("#newpwd_onet").val();
    var newpwd_twot = $("#newpwd_twot").val();
    var url = "{:U('User/updateTradePwd')}";
    $.post(url,{'pwdt':pwdt,'newpwd_onet':newpwd_onet,'newpwd_twot':newpwd_twot},function(data){
      if(data.status !=1){
        layer.msg(data.info);   
      }else{
        layer.msg(data.info);
         setTimeout(function () {
            location.href="{:U('User/revise_password')}"
          }, 2000); 
      }
    }); 
  }

</script>
